package cn.peng.stu4teach.pages.home.bean;

/**
 * 功能结构体
 */
public class FuncsBean {
    /**
     * 唯一标识
     */
    public String recordId;

    /**
     * 功能名称
     */
    public String name;
    /**
     * 图标地址
     */
    public String iconUrl;
    /**
     * 点击之后的跳转地址
     */
    public String targetUrl;

    /**
     * 是否仅是分组标题，而不是具体的功能
     */
    public boolean isGroupTitle;

    /**
     * 是否在常用功能中，非服务端返回字段，仅供业务使用.1-在常用功能中，其他值表示不在常用功能中
     */
    public boolean     inCommon;

    public FuncsBean (String pName, boolean pIsGroupTitle) {
        name = pName;
        isGroupTitle = pIsGroupTitle;
    }

    public FuncsBean (String pRecordId, String pName, String pIconUrl, String pTargetUrl) {
        recordId = pRecordId;
        name = pName;
        iconUrl = pIconUrl;
        targetUrl = pTargetUrl;
    }

    public FuncsBean (String pRecordId, String pName, String pIconUrl, String pTargetUrl, boolean pIsInComm) {
        recordId = pRecordId;
        name = pName;
        iconUrl = pIconUrl;
        targetUrl = pTargetUrl;
        inCommon = pIsInComm;
    }


}
